import './assets/main.css'

import { Lazyload } from 'vant';
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { Swipe, SwipeItem } from 'vant';
import 'lib-flexible';
import { Toast } from 'vant';
import { Rate } from 'vant';

import App from './App.vue'
import router from './router'
import Vant from 'vant';

const app = createApp(App)
app.use(ElementPlus)
app.use(  Lazyload   ,{
    loading: 'https://img2.baidu.com/it/u=1887349954,3657204094&fm=253&fmt=auto&app=120&f=JPEG?w=1208&h=800',
    error:'https://img0.baidu.com/it/u=3148308746,4218666658&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
})
app.use(SwipeItem);
app.use(router)
app.use(Vant)
app.use(Toast);
app.use(Rate);
app.mount('#app')
// 注册时设置`lazyComponent`选项
app.use(Lazyload, {
    lazyComponent: true,
});


